#include "system.h"
#include "i2c.h"


void Init(void)
{
OSCCON = 0b01010000;
OPTION = 0b10000000;
INTCON = 0b10100000;

TRISA = TRIS_A;
TRISB = TRIS_B;
TRISC = TRIS_C;

CM1CON0 = 0;
CM2CON0 = 0;
CM2CON1 = 0;



ADCON0 = 0;
ADCON1 = 0;
ANSEL = ANSELH = 0;


TXSTA = RCSTA = BAUDCTL = 0;
TXEN = 1;
BRGH = 1;
BRG16 = 0;
SPBRG = 12;
SPEN = 1;


//SSPMode(MASTER_MODE);


}


void interrupt
Int(void)
{
if (T0IF)
	{
	T0IF=0;
//    Led2^=1;
	}
}





